package com.parking.order.model.form;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;

/**
 * 支付订单参数
 * */
@Data
@ApiModel("支付订单参数")
public class PayForm {
    /**
     * 订单编号 超时订单长度20 普通订单长度19
     * */
    @ApiModelProperty("订单编号")
    @NotNull(message = "orderInfoNum不能为空")
    @Length(message = "orderInfoNum长度为19或20", min = 19, max = 20)
    private String orderInfoNum;
}
